package cn.stylefeng.guns.modular.launchpad.service;

import cn.stylefeng.guns.core.common.page.LayuiPageFactory;
import cn.stylefeng.guns.modular.launchpad.entity.Distribution;
import cn.stylefeng.guns.modular.launchpad.mapper.DistributionMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 分发记录表Service
 *
 * @author yaying.liu
 * @since 2024-05-13 17:02:34
 */
@Service
public class DistributionService extends ServiceImpl<DistributionMapper, Distribution> {
    @Autowired
    private DistributionMapper distributionMapper;

    public IPage<Distribution> getList(Distribution distribution) {
        Page<Distribution> pageParam = LayuiPageFactory.defaultPage();
        return distributionMapper.getList(pageParam, distribution);
    }
}
